home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ddddeeeeffffllllffffoooo((((3333GGGG)))) ddddeeeeffffllllffffoooo((((3333GGGG))))
-
-
-
- NNNNAAAAMMMMEEEE
- ddddeeeeffffllllffffoooo - defines a raster font capable of accommodating large rasters and
- multi-byte character id's
-
- FFFFOOOORRRRTTTTRRRRAAAANNNN 77777777 SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ddddeeeeffffllllffffoooo((((nnnn,,,, nnnncccc,,,, cccchhhhaaaarrrrssss,,,, nnnnrrrr,,,, rrrraaaasssstttteeeerrrr))))
- iiiinnnntttteeeeggggeeeerrrr****4444 nnnn,,,, hhhhtttt,,,, nnnncccc,,,, nnnnrrrr
- iiiinnnntttteeeeggggeeeerrrr****4444 cccchhhhaaaarrrrssss((((5555****nnnncccc)))),,,, rrrraaaasssstttteeeerrrr((((nnnnrrrr))))
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _n expects the value to use as the identifier for this raster font.
- The default font is a fixed-pitch ASCII font with a height of
- 15, width of 9, character values 0 through 127 defined, and is
- specified by a font identifier of 0. Font 0 cannot be
- redefined.
-
- _n_c expects the number of elements in the _c_h_a_r_s array.
-
- _c_h_a_r_s expects an array of 5 by _n_c four-byte integers. Since parts of
- certain elements need to be set, declare a ten by _n_c/2 array of
- two-byte integers, and then EQUIVALENCE the new array to the
- _c_h_a_r_s array.
-
- FFFFiiiirrrrsssstttt eeeelllleeeemmmmeeeennnntttt of each row expects the integer value for for this
- character. When this value is encountered by cccchhhhssssttttrrrr or llllcccchhhhaaaarrrrsssstttt
- this character is drawn.
-
- SSSSeeeeccccoooonnnndddd eeeelllleeeemmmmeeeennnntttt expects the element number of _r_a_s_t_e_r at which the
- bitmap data for this character begins. Element numbers start at
- zero.
-
- TTTThhhhiiiirrrrdddd eeeelllleeeemmmmeeeennnntttt,,,, hhhhiiiigggghhhh hhhhaaaallllffff----wwwwoooorrrrdddd expects the number of columns in
- the bitmap that contain set bits (character width). TTTThhhhiiiirrrrdddd
- eeeelllleeeemmmmeeeennnntttt,,,, lllloooowwww hhhhaaaallllffff----wwwwoooorrrrdddd expects the number of rows (character
- height) in the bitmap of the character (including ascender and
- descender).
-
- FFFFoooouuuurrrrtttthhhh eeeelllleeeemmmmeeeennnntttt,,,, hhhhiiiigggghhhh hhhhaaaallllffff----wwwwoooorrrrdddd expects the number of bitmap
- columns between the start of the character's bitmap and the
- start of the character. FFFFoooouuuurrrrtttthhhh eeeelllleeeemmmmeeeennnntttt,,,, lllloooowwww hhhhaaaallllffff----wwwwoooorrrrdddd expects
- the number rows between the character's baseline and the bottom
- of the bitmap. For characters with descenders (e.g., _g) this
- value is a negative number. For characters that rest entirely
- on the baseline, this value is zero.
-
- FFFFiiiifffftttthhhh eeeelllleeeemmmmeeeennnntttt,,,, hhhhiiiigggghhhh hhhhaaaallllffff----wwwwoooorrrrdddd expects the number of pixels to
- move in the x-direction after this character is displayed.
- FFFFiiiifffftttthhhh eeeelllleeeemmmmeeeennnntttt,,,, lllloooowwww hhhhaaaallllffff----wwwwoooorrrrdddd expects the number of pixels to
- move in the y-direction after this character is displayed.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ddddeeeeffffllllffffoooo((((3333GGGG)))) ddddeeeeffffllllffffoooo((((3333GGGG))))
-
-
-
- _n_r expects the number of 16-bit integers in _r_a_s_t_e_r.
-
- _r_a_s_t_e_r expects a one-dimensional array containing all the bitmap data
- for the characters in the font. The bitmap data for each
- character is a set of consecutive, 16-bit integers, comprising
- the bit mask for the character from left to right, bottom to
- top. For characters of width greater than 16, the rows of a
- bitmap span more than one array element, however, each new row
- in the character bitmap must start with its own array element.
-
- The number of 16-bit integers per row in a character's bitmap is
- (_w+15)/16. The total number of 16-bit integers in a character's
- raster definition is _h*((_w+15)/16).
-
- Bit 15 of each element is left-most when displayed. Bits that
- are '1' are drawn, bits that are '0' are masked.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- ddddeeeeffffllllffffoooo defines a new raster font, or adds/replaces character definitions
- in the current raster font. If the font did not exist, it is created.
- If it did exist, the character descriptions in the current call replace
- any currently defined characters of the same value.
-
- ddddeeeeffffllllffffoooo and ddddeeeeffffrrrraaaassss share the same name space for font id's, so programmers
- should beware of collisions. Also, raster fonts initially defined with
- ddddeeeeffffrrrraaaassss may not augment their character sets via subsequent calls to
- ddddeeeeffffllllffffoooo.
-
- If ddddeeeeffffllllffffoooo is called with _n_c set to zero, the font is deleted.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- charst, cmove, font, getcpo, getdes, getfon, gethei, lchstr, lstwid,
- strwid
-
- NNNNOOOOTTTTEEEE
- This routine is available only in immediate mode.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-